package com.example.service.impl;

import com.example.entity.Household;
import com.example.mapper.HouseholdMapper;
import com.example.result.CommonResult;
import com.example.service.HouseholdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HouseholdServiceImpl implements HouseholdService {

    @Resource
    private HouseholdMapper householdMapper;

    /**查询房屋
     * @return
     */
    @Override
    public CommonResult gethousehold() {
        List<Household> list = householdMapper.gethouse();
        return CommonResult.ok(list);
    }
}
